Built motion from commit 639a1a7f.|2.6.19
[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 _0x9bf9=['GetTrunk','name','registry','defaultuser','../client'];(function(_0x55e0e3,_0x1081a6){var _0x97dab=function(_0x14087a){while(--_0x14087a){_0x55e0e3['push'](_0x55e0e3['shift']());}};_0x97dab(++_0x1081a6);}(_0x9bf9,0xe5));var _0x99bf=function(_0x550d12,_0x5384bd){_0x550d12=_0x550d12-0x0;var _0x12103d=_0x9bf9[_0x550d12];return _0x12103d;};'use strict';var client=require(_0x99bf('0x0'));exports['getTrunks']=function(_0x3907eb){return function(_0x17ccb9){return client['Request'](_0x99bf('0x1'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x99bf('0x2'),_0x99bf('0x3'),_0x99bf('0x4')]},'log':_0x99bf('0x1')});};};