Built motion from commit d5e4af8c.|2.6.23
[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 _0xcd55=['VtigerField','Descriptions','key','keyType','name','idField','nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','description','remoteUri','serverUrl','Configurations','Subjects','type','content','variableName','Variable'];(function(_0x2dbce7,_0x57cb8d){var _0x3a3ed0=function(_0x28c8c6){while(--_0x28c8c6){_0x2dbce7['push'](_0x2dbce7['shift']());}};_0x3a3ed0(++_0x57cb8d);}(_0xcd55,0xa8));var _0x5cd5=function(_0x12fc8d,_0x19ee33){_0x12fc8d=_0x12fc8d-0x0;var _0x3f9d04=_0xcd55[_0x12fc8d];return _0x3f9d04;};'use strict';var client=require(_0x5cd5('0x0'));exports[_0x5cd5('0x1')]=function(){return function(_0x24ceab){return client['Request'](_0x5cd5('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x5cd5('0x3'),'username','accessKey',_0x5cd5('0x4'),_0x5cd5('0x5')],'include':[{'model':'VtigerConfiguration','as':_0x5cd5('0x6'),'attributes':['id','name'],'include':[{'model':'VtigerField','as':_0x5cd5('0x7'),'attributes':['id',_0x5cd5('0x8'),_0x5cd5('0x9'),_0x5cd5('0xa')],'include':[{'model':'Variable','as':_0x5cd5('0xb'),'attributes':['id','name']}]},{'model':_0x5cd5('0xc'),'as':_0x5cd5('0xd'),'attributes':['id',_0x5cd5('0x8'),_0x5cd5('0x9'),_0x5cd5('0xe'),_0x5cd5('0xf'),'keyContent',_0x5cd5('0xa')],'include':[{'model':_0x5cd5('0xb'),'as':_0x5cd5('0xb'),'attributes':['id',_0x5cd5('0x10')]}]},{'model':'VtigerField','as':'Fields','attributes':['id',_0x5cd5('0x8'),_0x5cd5('0x9'),_0x5cd5('0x11'),_0x5cd5('0x12'),_0x5cd5('0x13'),_0x5cd5('0xa')],'include':[{'model':_0x5cd5('0xb'),'as':_0x5cd5('0xb'),'attributes':['id',_0x5cd5('0x10')]}]}]}]},'log':_0x5cd5('0x2')});};};