98e5cf511ff547f2446eaf92fd082be3d5dacdbb
[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 _0x93d3=['getTrunks','Request','GetTrunk','registry'];(function(_0xd1b4df,_0x118a9a){var _0x24b551=function(_0x438cfc){while(--_0x438cfc){_0xd1b4df['push'](_0xd1b4df['shift']());}};_0x24b551(++_0x118a9a);}(_0x93d3,0xfc));var _0x393d=function(_0x2064e5,_0x4f6fa2){_0x2064e5=_0x2064e5-0x0;var _0x21a233=_0x93d3[_0x2064e5];return _0x21a233;};'use strict';var client=require('../client');exports[_0x393d('0x0')]=function(_0x4445bc){return function(_0x4f5b3e){return client[_0x393d('0x1')](_0x393d('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x393d('0x3')]},'log':_0x393d('0x2')});};};