579de66bf666505c0eb9c1963a24ea5fb2577c04
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0x4666=['path','rimraf','../../config/environment','./intZohoField.attributes','exports','ZohoField','int_zoho_fields','zoho_unique_index','idField','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x10f6e8,_0x351db6){var _0x35bb3c=function(_0x30a39b){while(--_0x30a39b){_0x10f6e8['push'](_0x10f6e8['shift']());}};_0x35bb3c(++_0x351db6);}(_0x4666,0x162));var _0x6466=function(_0x53a2f2,_0x396930){_0x53a2f2=_0x53a2f2-0x0;var _0x29c11e=_0x4666[_0x53a2f2];return _0x29c11e;};'use strict';var _=require(_0x6466('0x0'));var util=require(_0x6466('0x1'));var logger=require(_0x6466('0x2'))(_0x6466('0x3'));var moment=require(_0x6466('0x4'));var BPromise=require('bluebird');var rp=require(_0x6466('0x5'));var fs=require('fs');var path=require(_0x6466('0x6'));var rimraf=require(_0x6466('0x7'));var config=require(_0x6466('0x8'));var attributes=require(_0x6466('0x9'));module[_0x6466('0xa')]=function(_0x5064bf,_0x494ce0){return _0x5064bf['define'](_0x6466('0xb'),attributes,{'tableName':_0x6466('0xc'),'paranoid':![],'indexes':[{'name':_0x6466('0xd'),'fields':[_0x6466('0xe'),'FieldId'],'unique':!![]}],'timestamps':!![]});};