d133a131fe57471762651391fe04baae2ed2d5a4
[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 _0xe614=['registry','defaultuser','getTrunks','Request','GetTrunk','name'];(function(_0x5055e5,_0x2d2b9d){var _0x5658ea=function(_0x2da246){while(--_0x2da246){_0x5055e5['push'](_0x5055e5['shift']());}};_0x5658ea(++_0x2d2b9d);}(_0xe614,0x1be));var _0x4e61=function(_0x23d528,_0x1edf07){_0x23d528=_0x23d528-0x0;var _0x5812f1=_0xe614[_0x23d528];return _0x5812f1;};'use strict';var client=require('../client');exports[_0x4e61('0x0')]=function(_0x361553){return function(_0x920b6b){return client[_0x4e61('0x1')](_0x4e61('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x4e61('0x3'),_0x4e61('0x4'),_0x4e61('0x5')]},'log':_0x4e61('0x2')});};};