98af206c39c78978f47bfe17b81d11347735326d
[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 _0xacb8=['GetTrunk','../client','Request','name','registry'];(function(_0x55cedd,_0xa6dbbf){var _0x453287=function(_0x4c9ed5){while(--_0x4c9ed5){_0x55cedd['push'](_0x55cedd['shift']());}};_0x453287(++_0xa6dbbf);}(_0xacb8,0x119));var _0x8acb=function(_0x21d9b3,_0x4d20d4){_0x21d9b3=_0x21d9b3-0x0;var _0x5b89ce=_0xacb8[_0x21d9b3];return _0x5b89ce;};'use strict';var client=require(_0x8acb('0x0'));exports['getTrunks']=function(_0x166931){return function(_0x23a4d9){return client[_0x8acb('0x1')]('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x8acb('0x2'),_0x8acb('0x3'),'defaultuser']},'log':_0x8acb('0x4')});};};