d2a648966bee53252008b91441e32c051b93c4fd
[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 _0x4a99=['GetTrunk','../client','Request','name','defaultuser'];(function(_0x48348c,_0x324a05){var _0x1ae35a=function(_0x5c4056){while(--_0x5c4056){_0x48348c['push'](_0x48348c['shift']());}};_0x1ae35a(++_0x324a05);}(_0x4a99,0x1aa));var _0x94a9=function(_0x4243a3,_0x447337){_0x4243a3=_0x4243a3-0x0;var _0x1b2a33=_0x4a99[_0x4243a3];return _0x1b2a33;};'use strict';var client=require(_0x94a9('0x0'));exports['getTrunks']=function(_0x5cd1fa){return function(_0x21254e){return client[_0x94a9('0x1')]('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x94a9('0x2'),'registry',_0x94a9('0x3')]},'log':_0x94a9('0x4')});};};