Built motion from commit 14588770.|2.5.38
[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 _0xce95=['customField','GetZohoAccount','../../client','getZohoAccounts','Request','name','description','host','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleSearch','ZohoField','Subjects','content','variableName','Variable','Descriptions','key','keyType','type','nameField'];(function(_0x45f951,_0x2750c8){var _0x24756c=function(_0x31c931){while(--_0x31c931){_0x45f951['push'](_0x45f951['shift']());}};_0x24756c(++_0x2750c8);}(_0xce95,0x106));var _0x5ce9=function(_0x58e84a,_0x57ed90){_0x58e84a=_0x58e84a-0x0;var _0x3b2e7f=_0xce95[_0x58e84a];return _0x3b2e7f;};'use strict';var client=require(_0x5ce9('0x0'));exports[_0x5ce9('0x1')]=function(){return function(_0x5673ad){return client[_0x5ce9('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x5ce9('0x3'),_0x5ce9('0x4'),_0x5ce9('0x5'),'zone',_0x5ce9('0x6'),_0x5ce9('0x7'),_0x5ce9('0x8'),_0x5ce9('0x9'),_0x5ce9('0xa')],'include':[{'model':_0x5ce9('0xb'),'as':_0x5ce9('0xc'),'attributes':['id',_0x5ce9('0x3'),'moduleCreate',_0x5ce9('0xd'),_0x5ce9('0x4')],'include':[{'model':_0x5ce9('0xe'),'as':_0x5ce9('0xf'),'attributes':['id','type',_0x5ce9('0x10'),_0x5ce9('0x11')],'include':[{'model':_0x5ce9('0x12'),'as':_0x5ce9('0x12'),'attributes':['id','name']}]},{'model':_0x5ce9('0xe'),'as':_0x5ce9('0x13'),'attributes':['id','type',_0x5ce9('0x10'),_0x5ce9('0x14'),_0x5ce9('0x15'),'keyContent',_0x5ce9('0x11')],'include':[{'model':_0x5ce9('0x12'),'as':_0x5ce9('0x12'),'attributes':['id','name']}]},{'model':_0x5ce9('0xe'),'as':'Fields','attributes':['id',_0x5ce9('0x16'),_0x5ce9('0x10'),'idField',_0x5ce9('0x17'),_0x5ce9('0x18'),_0x5ce9('0x11')],'include':[{'model':_0x5ce9('0x12'),'as':_0x5ce9('0x12'),'attributes':['id','name']}]}]}]},'log':_0x5ce9('0x19')});};};