7936e99fbc48b72e4955ef48a056a2dc2110f61f
[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 _0x18ea=['../client','getTrunks','Request','GetTrunk','registry'];(function(_0x1b19d6,_0x56ec99){var _0x21e1ef=function(_0x4279c9){while(--_0x4279c9){_0x1b19d6['push'](_0x1b19d6['shift']());}};_0x21e1ef(++_0x56ec99);}(_0x18ea,0xbe));var _0xa18e=function(_0x47f8fe,_0xe0505a){_0x47f8fe=_0x47f8fe-0x0;var _0x2723e3=_0x18ea[_0x47f8fe];return _0x2723e3;};'use strict';var client=require(_0xa18e('0x0'));exports[_0xa18e('0x1')]=function(_0x4b3cf6){return function(_0x5ea202){return client[_0xa18e('0x2')](_0xa18e('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0xa18e('0x4'),'defaultuser']},'log':'GetTrunk'});};};