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