b7560cbd8205debc2b7c94c0c9eaeb23ee006e98
[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 _0xe47c=['type','idField','nameField','customField','GetZohoAccount','../../client','getZohoAccounts','name','description','host','clientId','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','content','variableName','Variable','Descriptions','keyType','Fields'];(function(_0x53efe5,_0x580c4c){var _0x2c6ef2=function(_0x60cb41){while(--_0x60cb41){_0x53efe5['push'](_0x53efe5['shift']());}};_0x2c6ef2(++_0x580c4c);}(_0xe47c,0xef));var _0xce47=function(_0x358045,_0x1824a9){_0x358045=_0x358045-0x0;var _0x43a2f6=_0xe47c[_0x358045];return _0x43a2f6;};'use strict';var client=require(_0xce47('0x0'));exports[_0xce47('0x1')]=function(){return function(_0x48ca68){return client['Request']('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0xce47('0x2'),_0xce47('0x3'),_0xce47('0x4'),'zone',_0xce47('0x5'),'clientSecret',_0xce47('0x6'),_0xce47('0x7'),_0xce47('0x8')],'include':[{'model':_0xce47('0x9'),'as':_0xce47('0xa'),'attributes':['id',_0xce47('0x2'),_0xce47('0xb'),_0xce47('0xc'),_0xce47('0x3')],'include':[{'model':_0xce47('0xd'),'as':_0xce47('0xe'),'attributes':['id','type',_0xce47('0xf'),_0xce47('0x10')],'include':[{'model':_0xce47('0x11'),'as':_0xce47('0x11'),'attributes':['id',_0xce47('0x2')]}]},{'model':_0xce47('0xd'),'as':_0xce47('0x12'),'attributes':['id','type',_0xce47('0xf'),'key',_0xce47('0x13'),'keyContent',_0xce47('0x10')],'include':[{'model':_0xce47('0x11'),'as':'Variable','attributes':['id','name']}]},{'model':_0xce47('0xd'),'as':_0xce47('0x14'),'attributes':['id',_0xce47('0x15'),_0xce47('0xf'),_0xce47('0x16'),_0xce47('0x17'),_0xce47('0x18'),_0xce47('0x10')],'include':[{'model':_0xce47('0x11'),'as':_0xce47('0x11'),'attributes':['id',_0xce47('0x2')]}]}]}]},'log':_0xce47('0x19')});};};