Built motion from commit 85328c08.|2.5.50
[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 _0x6666=['GetTrunk','name','../client'];(function(_0x42ff07,_0x118ced){var _0x21457b=function(_0x5e4a2d){while(--_0x5e4a2d){_0x42ff07['push'](_0x42ff07['shift']());}};_0x21457b(++_0x118ced);}(_0x6666,0x6e));var _0x6666=function(_0x4e7d25,_0x58285f){_0x4e7d25=_0x4e7d25-0x0;var _0x526fe6=_0x6666[_0x4e7d25];return _0x526fe6;};'use strict';var client=require(_0x6666('0x0'));exports['getTrunks']=function(_0x5b2ac4){return function(_0x59e3ca){return client['Request'](_0x6666('0x1'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x6666('0x2'),'registry','defaultuser']},'log':_0x6666('0x1')});};};