21c1f186be9f50c28990564717004ad031e6f090
[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 _0x1dbf=['CreateCmContact','getContacts','GetCmContact','../client','Request'];(function(_0x1dfec0,_0x3fc8f){var _0x56eb82=function(_0x458b09){while(--_0x458b09){_0x1dfec0['push'](_0x1dfec0['shift']());}};_0x56eb82(++_0x3fc8f);}(_0x1dbf,0x99));var _0xf1db=function(_0x280f4a,_0x2ed8d6){_0x280f4a=_0x280f4a-0x0;var _0x1bb157=_0x1dbf[_0x280f4a];return _0x1bb157;};'use strict';var client=require(_0xf1db('0x0'));exports['createContact']=function(_0x824ad5){return function(){return client[_0xf1db('0x1')](_0xf1db('0x2'),{'body':_0x824ad5,'log':_0xf1db('0x2')});};};exports[_0xf1db('0x3')]=function(_0x1faafc){return function(){return client[_0xf1db('0x1')](_0xf1db('0x4'),{'options':_0x1faafc,'log':'GetCmContact'});};};