Built motion from commit 9e1399f3.|2.5.37
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0xd409=['serverUrl','refreshToken','Configurations','moduleCreate','moduleSearch','content','variableName','Variable','ZohoField','Descriptions','key','keyType','keyContent','idField','../../client','getZohoAccounts','GetZohoAccount','name','description','host','zone','clientId','clientSecret'];(function(_0x39c7f4,_0x5b82f2){var _0x151b74=function(_0x1d5397){while(--_0x1d5397){_0x39c7f4['push'](_0x39c7f4['shift']());}};_0x151b74(++_0x5b82f2);}(_0xd409,0xaf));var _0x9d40=function(_0x13b07a,_0x49cfc3){_0x13b07a=_0x13b07a-0x0;var _0xdcbe0=_0xd409[_0x13b07a];return _0xdcbe0;};'use strict';var client=require(_0x9d40('0x0'));exports[_0x9d40('0x1')]=function(){return function(_0x563827){return client['Request'](_0x9d40('0x2'),{'options':{'raw':![],'attributes':['id',_0x9d40('0x3'),_0x9d40('0x4'),_0x9d40('0x5'),_0x9d40('0x6'),_0x9d40('0x7'),_0x9d40('0x8'),_0x9d40('0x9'),'code',_0x9d40('0xa')],'include':[{'model':'ZohoConfiguration','as':_0x9d40('0xb'),'attributes':['id',_0x9d40('0x3'),_0x9d40('0xc'),_0x9d40('0xd'),'description'],'include':[{'model':'ZohoField','as':'Subjects','attributes':['id','type',_0x9d40('0xe'),_0x9d40('0xf')],'include':[{'model':_0x9d40('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':_0x9d40('0x11'),'as':_0x9d40('0x12'),'attributes':['id','type',_0x9d40('0xe'),_0x9d40('0x13'),_0x9d40('0x14'),_0x9d40('0x15'),_0x9d40('0xf')],'include':[{'model':'Variable','as':_0x9d40('0x10'),'attributes':['id','name']}]},{'model':_0x9d40('0x11'),'as':'Fields','attributes':['id','type',_0x9d40('0xe'),_0x9d40('0x16'),'nameField','customField',_0x9d40('0xf')],'include':[{'model':'Variable','as':_0x9d40('0x10'),'attributes':['id',_0x9d40('0x3')]}]}]}]},'log':_0x9d40('0x2')});};};