Built motion from commit (unavailable).|2.4.17
[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 _0x3de3=['type','variableName','Variable','Descriptions','content','key','keyType','keyContent','Fields','idField','customField','GetZohoAccount','../../client','Request','name','description','host','zone','clientSecret','serverUrl','refreshToken','Configurations','moduleCreate','ZohoField','Subjects'];(function(_0x198a22,_0x540154){var _0x264157=function(_0x1daf4d){while(--_0x1daf4d){_0x198a22['push'](_0x198a22['shift']());}};_0x264157(++_0x540154);}(_0x3de3,0x1ce));var _0x33de=function(_0x4efaec,_0x19d491){_0x4efaec=_0x4efaec-0x0;var _0x389917=_0x3de3[_0x4efaec];return _0x389917;};'use strict';var client=require(_0x33de('0x0'));exports['getZohoAccounts']=function(){return function(_0x19d1ba){return client[_0x33de('0x1')]('GetZohoAccount',{'options':{'raw':![],'attributes':['id',_0x33de('0x2'),_0x33de('0x3'),_0x33de('0x4'),_0x33de('0x5'),'clientId',_0x33de('0x6'),_0x33de('0x7'),'code',_0x33de('0x8')],'include':[{'model':'ZohoConfiguration','as':_0x33de('0x9'),'attributes':['id',_0x33de('0x2'),_0x33de('0xa'),'description'],'include':[{'model':_0x33de('0xb'),'as':_0x33de('0xc'),'attributes':['id',_0x33de('0xd'),'content',_0x33de('0xe')],'include':[{'model':_0x33de('0xf'),'as':_0x33de('0xf'),'attributes':['id',_0x33de('0x2')]}]},{'model':_0x33de('0xb'),'as':_0x33de('0x10'),'attributes':['id',_0x33de('0xd'),_0x33de('0x11'),_0x33de('0x12'),_0x33de('0x13'),_0x33de('0x14'),'variableName'],'include':[{'model':_0x33de('0xf'),'as':_0x33de('0xf'),'attributes':['id','name']}]},{'model':'ZohoField','as':_0x33de('0x15'),'attributes':['id',_0x33de('0xd'),_0x33de('0x11'),_0x33de('0x16'),'nameField',_0x33de('0x17'),_0x33de('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x33de('0x2')]}]}]}]},'log':_0x33de('0x18')});};};