b4d7494cc1ce145d5fc024a70505ef9dfdfd7a9c
[motion2.git] / server / services / ami / rpc / cmContact.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 _0x2bd8=['Request','CreateCmContact','getContacts','GetCmContact','../client'];(function(_0x20c809,_0x26b566){var _0x1064a1=function(_0x39c6db){while(--_0x39c6db){_0x20c809['push'](_0x20c809['shift']());}};_0x1064a1(++_0x26b566);}(_0x2bd8,0x130));var _0x82bd=function(_0x282a2c,_0x19abd2){_0x282a2c=_0x282a2c-0x0;var _0x92e180=_0x2bd8[_0x282a2c];return _0x92e180;};'use strict';var client=require(_0x82bd('0x0'));exports['createContact']=function(_0x220cfa){return function(){return client[_0x82bd('0x1')](_0x82bd('0x2'),{'body':_0x220cfa,'log':_0x82bd('0x2')});};};exports[_0x82bd('0x3')]=function(_0x197dbc){return function(){return client[_0x82bd('0x1')]('GetCmContact',{'options':_0x197dbc,'log':_0x82bd('0x4')});};};