Built motion from commit e1760111.|2.6.18
[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 _0xa292=['registry','defaultuser','../client','Request','GetTrunk','name'];(function(_0x5af0d8,_0x368ed5){var _0x151bd4=function(_0x40eb8f){while(--_0x40eb8f){_0x5af0d8['push'](_0x5af0d8['shift']());}};_0x151bd4(++_0x368ed5);}(_0xa292,0x9e));var _0x2a29=function(_0x2d5805,_0x21954e){_0x2d5805=_0x2d5805-0x0;var _0x1cae4f=_0xa292[_0x2d5805];return _0x1cae4f;};'use strict';var client=require(_0x2a29('0x0'));exports['getTrunks']=function(_0x1f50a0){return function(_0x283c58){return client[_0x2a29('0x1')](_0x2a29('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x2a29('0x3'),_0x2a29('0x4'),_0x2a29('0x5')]},'log':'GetTrunk'});};};