Built motion from commit (unavailable).|2.5.22
[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 _0xb012=['Request','GetTrunk','registry','../client','getTrunks'];(function(_0x5d10f4,_0x4b9fac){var _0x2baf41=function(_0x1fbfe0){while(--_0x1fbfe0){_0x5d10f4['push'](_0x5d10f4['shift']());}};_0x2baf41(++_0x4b9fac);}(_0xb012,0x139));var _0x2b01=function(_0x13b341,_0x5b1a41){_0x13b341=_0x13b341-0x0;var _0xf259aa=_0xb012[_0x13b341];return _0xf259aa;};'use strict';var client=require(_0x2b01('0x0'));exports[_0x2b01('0x1')]=function(_0x54c322){return function(_0x497886){return client[_0x2b01('0x2')](_0x2b01('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x2b01('0x4')]},'log':_0x2b01('0x3')});};};