Built motion from commit (unavailable).|2.5.24
[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 _0xb41f=['Descriptions','content','keyContent','ZohoField','Fields','nameField','customField','../../client','Request','GetZohoAccount','name','zone','clientId','serverUrl','refreshToken','ZohoConfiguration','Configurations','moduleCreate','moduleSearch','description','Subjects','type','variableName','Variable'];(function(_0x17f939,_0x1a6bb1){var _0x36b737=function(_0x4d79ef){while(--_0x4d79ef){_0x17f939['push'](_0x17f939['shift']());}};_0x36b737(++_0x1a6bb1);}(_0xb41f,0xdf));var _0xfb41=function(_0x2e37db,_0x4f8606){_0x2e37db=_0x2e37db-0x0;var _0x3a0c58=_0xb41f[_0x2e37db];return _0x3a0c58;};'use strict';var client=require(_0xfb41('0x0'));exports['getZohoAccounts']=function(){return function(_0x3f6e43){return client[_0xfb41('0x1')](_0xfb41('0x2'),{'options':{'raw':![],'attributes':['id',_0xfb41('0x3'),'description','host',_0xfb41('0x4'),_0xfb41('0x5'),'clientSecret',_0xfb41('0x6'),'code',_0xfb41('0x7')],'include':[{'model':_0xfb41('0x8'),'as':_0xfb41('0x9'),'attributes':['id',_0xfb41('0x3'),_0xfb41('0xa'),_0xfb41('0xb'),_0xfb41('0xc')],'include':[{'model':'ZohoField','as':_0xfb41('0xd'),'attributes':['id',_0xfb41('0xe'),'content',_0xfb41('0xf')],'include':[{'model':_0xfb41('0x10'),'as':_0xfb41('0x10'),'attributes':['id',_0xfb41('0x3')]}]},{'model':'ZohoField','as':_0xfb41('0x11'),'attributes':['id','type',_0xfb41('0x12'),'key','keyType',_0xfb41('0x13'),_0xfb41('0xf')],'include':[{'model':_0xfb41('0x10'),'as':_0xfb41('0x10'),'attributes':['id',_0xfb41('0x3')]}]},{'model':_0xfb41('0x14'),'as':_0xfb41('0x15'),'attributes':['id',_0xfb41('0xe'),_0xfb41('0x12'),'idField',_0xfb41('0x16'),_0xfb41('0x17'),_0xfb41('0xf')],'include':[{'model':_0xfb41('0x10'),'as':_0xfb41('0x10'),'attributes':['id','name']}]}]}]},'log':_0xfb41('0x2')});};};