68c9be19a9ea47316be01436bb7bb3244ed1d1a7
[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 _0x577c=['serverUrl','code','refreshToken','Configurations','moduleCreate','moduleSearch','ZohoField','Subjects','type','content','variableName','Variable','Descriptions','keyType','keyContent','nameField','customField','GetZohoAccount','../../client','getZohoAccounts','Request','name','description','host','zone','clientId','clientSecret'];(function(_0x43b584,_0x20a6bd){var _0x48f27b=function(_0x1eeb77){while(--_0x1eeb77){_0x43b584['push'](_0x43b584['shift']());}};_0x48f27b(++_0x20a6bd);}(_0x577c,0x1c2));var _0xc577=function(_0x3d4ba2,_0x40d12d){_0x3d4ba2=_0x3d4ba2-0x0;var _0x889610=_0x577c[_0x3d4ba2];return _0x889610;};'use strict';var client=require(_0xc577('0x0'));exports[_0xc577('0x1')]=function(){return function(_0x329dec){return client[_0xc577('0x2')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0xc577('0x3'),_0xc577('0x4'),_0xc577('0x5'),_0xc577('0x6'),_0xc577('0x7'),_0xc577('0x8'),_0xc577('0x9'),_0xc577('0xa'),_0xc577('0xb')],'include':[{'model':'ZohoConfiguration','as':_0xc577('0xc'),'attributes':['id',_0xc577('0x3'),_0xc577('0xd'),_0xc577('0xe'),_0xc577('0x4')],'include':[{'model':_0xc577('0xf'),'as':_0xc577('0x10'),'attributes':['id',_0xc577('0x11'),_0xc577('0x12'),_0xc577('0x13')],'include':[{'model':_0xc577('0x14'),'as':_0xc577('0x14'),'attributes':['id','name']}]},{'model':_0xc577('0xf'),'as':_0xc577('0x15'),'attributes':['id',_0xc577('0x11'),_0xc577('0x12'),'key',_0xc577('0x16'),_0xc577('0x17'),_0xc577('0x13')],'include':[{'model':'Variable','as':_0xc577('0x14'),'attributes':['id',_0xc577('0x3')]}]},{'model':_0xc577('0xf'),'as':'Fields','attributes':['id',_0xc577('0x11'),_0xc577('0x12'),'idField',_0xc577('0x18'),_0xc577('0x19'),_0xc577('0x13')],'include':[{'model':_0xc577('0x14'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xc577('0x1a')});};};