e4f5881918e6400238f6f3d257fca2bf44382aa6
[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 _0x394f=['Request','GetTrunk','name','registry','defaultuser','../client'];(function(_0x53ca03,_0x290fd2){var _0x5f32da=function(_0x4f3158){while(--_0x4f3158){_0x53ca03['push'](_0x53ca03['shift']());}};_0x5f32da(++_0x290fd2);}(_0x394f,0x8f));var _0xf394=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x394f[_0x2dafbe];return _0x58a45a;};'use strict';var client=require(_0xf394('0x0'));exports['getTrunks']=function(_0xc47346){return function(_0x44fd96){return client[_0xf394('0x1')](_0xf394('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xf394('0x3'),_0xf394('0x4'),_0xf394('0x5')]},'log':'GetTrunk'});};};