836c262e7677276d52f473a7c8abeb63e063a0b5
[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 _0x50e8=['GetTrunk','name','registry','../client','getTrunks'];(function(_0x71ae3c,_0x49c7a8){var _0x267933=function(_0x256e9a){while(--_0x256e9a){_0x71ae3c['push'](_0x71ae3c['shift']());}};_0x267933(++_0x49c7a8);}(_0x50e8,0x71));var _0x850e=function(_0x54fbff,_0x53470e){_0x54fbff=_0x54fbff-0x0;var _0x5cf619=_0x50e8[_0x54fbff];return _0x5cf619;};'use strict';var client=require(_0x850e('0x0'));exports[_0x850e('0x1')]=function(_0x5c7dc6){return function(_0x47d346){return client['Request'](_0x850e('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x850e('0x3'),_0x850e('0x4')]},'log':_0x850e('0x2')});};};