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