Built motion from commit 753c950e.|2.5.42
[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 _0x2ae0=['getTrunks','Request','GetTrunk','name','registry','../client'];(function(_0x11cd17,_0x489e02){var _0x3343ad=function(_0xfb1588){while(--_0xfb1588){_0x11cd17['push'](_0x11cd17['shift']());}};_0x3343ad(++_0x489e02);}(_0x2ae0,0x161));var _0x02ae=function(_0x213b44,_0x46bb8f){_0x213b44=_0x213b44-0x0;var _0x4c1ddb=_0x2ae0[_0x213b44];return _0x4c1ddb;};'use strict';var client=require(_0x02ae('0x0'));exports[_0x02ae('0x1')]=function(_0x5da946){return function(_0x52ba5e){return client[_0x02ae('0x2')](_0x02ae('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x02ae('0x4'),_0x02ae('0x5'),'defaultuser']},'log':_0x02ae('0x3')});};};