72f3580178a740cb2b74f64873df03d84f1dfcc9
[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 _0x5162=['CreateCmContact','getContacts','Request','GetCmContact','../client'];(function(_0x25c292,_0xe90bc6){var _0x225bb2=function(_0x4788cb){while(--_0x4788cb){_0x25c292['push'](_0x25c292['shift']());}};_0x225bb2(++_0xe90bc6);}(_0x5162,0x103));var _0x2516=function(_0x114b54,_0x3ed9bb){_0x114b54=_0x114b54-0x0;var _0x21c37f=_0x5162[_0x114b54];return _0x21c37f;};'use strict';var client=require(_0x2516('0x0'));exports['createContact']=function(_0x49d60f){return function(){return client['Request']('CreateCmContact',{'body':_0x49d60f,'log':_0x2516('0x1')});};};exports[_0x2516('0x2')]=function(_0x3ce7de){return function(){return client[_0x2516('0x3')](_0x2516('0x4'),{'options':_0x3ce7de,'log':_0x2516('0x4')});};};