4b2fbf22ef67f62254ebbcb650691e0683c6fdae
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x95f3=['GetVtigerAccount','name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','Subjects','type','Variable','VtigerField','Descriptions','content','key','keyContent','variableName','Fields','idField','customField','../../client','getVtigerAccounts'];(function(_0x14bff8,_0x5dca25){var _0x26e63b=function(_0x2e6a8a){while(--_0x2e6a8a){_0x14bff8['push'](_0x14bff8['shift']());}};_0x26e63b(++_0x5dca25);}(_0x95f3,0x1b3));var _0x395f=function(_0x54a8f8,_0x28c1b2){_0x54a8f8=_0x54a8f8-0x0;var _0x5af95c=_0x95f3[_0x54a8f8];return _0x5af95c;};'use strict';var client=require(_0x395f('0x0'));exports[_0x395f('0x1')]=function(){return function(_0x1f8ead){return client['Request'](_0x395f('0x2'),{'options':{'raw':![],'attributes':['id',_0x395f('0x3'),_0x395f('0x4'),_0x395f('0x5'),_0x395f('0x6'),_0x395f('0x7'),_0x395f('0x8')],'include':[{'model':_0x395f('0x9'),'as':_0x395f('0xa'),'attributes':['id',_0x395f('0x3')],'include':[{'model':'VtigerField','as':_0x395f('0xb'),'attributes':['id',_0x395f('0xc'),'content','variableName'],'include':[{'model':_0x395f('0xd'),'as':_0x395f('0xd'),'attributes':['id',_0x395f('0x3')]}]},{'model':_0x395f('0xe'),'as':_0x395f('0xf'),'attributes':['id','type',_0x395f('0x10'),_0x395f('0x11'),'keyType',_0x395f('0x12'),_0x395f('0x13')],'include':[{'model':_0x395f('0xd'),'as':_0x395f('0xd'),'attributes':['id',_0x395f('0x3')]}]},{'model':'VtigerField','as':_0x395f('0x14'),'attributes':['id','type',_0x395f('0x10'),_0x395f('0x15'),'nameField',_0x395f('0x16'),_0x395f('0x13')],'include':[{'model':_0x395f('0xd'),'as':_0x395f('0xd'),'attributes':['id','name']}]}]}]},'log':'GetVtigerAccount'});};};