Built motion from commit (unavailable).|2.5.28
[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 _0xa8dd=['Request','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','moduleCreate','moduleSearch','ZohoField','Subjects','content','Variable','type','key','keyType','keyContent','variableName','Fields','idField','nameField','customField','../../client'];(function(_0x1c47b0,_0x19e61c){var _0x5ae2e3=function(_0x2243ae){while(--_0x2243ae){_0x1c47b0['push'](_0x1c47b0['shift']());}};_0x5ae2e3(++_0x19e61c);}(_0xa8dd,0x8b));var _0xda8d=function(_0x22818b,_0x3c8c44){_0x22818b=_0x22818b-0x0;var _0x5e9a47=_0xa8dd[_0x22818b];return _0x5e9a47;};'use strict';var client=require(_0xda8d('0x0'));exports['getZohoAccounts']=function(){return function(_0x16997e){return client[_0xda8d('0x1')](_0xda8d('0x2'),{'options':{'raw':![],'attributes':['id',_0xda8d('0x3'),_0xda8d('0x4'),_0xda8d('0x5'),_0xda8d('0x6'),_0xda8d('0x7'),_0xda8d('0x8'),_0xda8d('0x9'),_0xda8d('0xa'),_0xda8d('0xb')],'include':[{'model':_0xda8d('0xc'),'as':'Configurations','attributes':['id','name',_0xda8d('0xd'),_0xda8d('0xe'),_0xda8d('0x4')],'include':[{'model':_0xda8d('0xf'),'as':_0xda8d('0x10'),'attributes':['id','type',_0xda8d('0x11'),'variableName'],'include':[{'model':_0xda8d('0x12'),'as':_0xda8d('0x12'),'attributes':['id',_0xda8d('0x3')]}]},{'model':_0xda8d('0xf'),'as':'Descriptions','attributes':['id',_0xda8d('0x13'),_0xda8d('0x11'),_0xda8d('0x14'),_0xda8d('0x15'),_0xda8d('0x16'),_0xda8d('0x17')],'include':[{'model':_0xda8d('0x12'),'as':_0xda8d('0x12'),'attributes':['id',_0xda8d('0x3')]}]},{'model':_0xda8d('0xf'),'as':_0xda8d('0x18'),'attributes':['id',_0xda8d('0x13'),'content',_0xda8d('0x19'),_0xda8d('0x1a'),_0xda8d('0x1b'),_0xda8d('0x17')],'include':[{'model':_0xda8d('0x12'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xda8d('0x2')});};};