Built motion from commit (unavailable).|2.4.21
[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 _0xac2f=['api','moment','bluebird','rimraf','../../config/environment','./intZohoField.attributes','exports','define','int_zoho_fields','idField','lodash','util'];(function(_0x5b5476,_0x4b4179){var _0x22abd5=function(_0x6658e6){while(--_0x6658e6){_0x5b5476['push'](_0x5b5476['shift']());}};_0x22abd5(++_0x4b4179);}(_0xac2f,0xbe));var _0xfac2=function(_0x30366b,_0x1474b8){_0x30366b=_0x30366b-0x0;var _0x591a3c=_0xac2f[_0x30366b];return _0x591a3c;};'use strict';var _=require(_0xfac2('0x0'));var util=require(_0xfac2('0x1'));var logger=require('../../config/logger')(_0xfac2('0x2'));var moment=require(_0xfac2('0x3'));var BPromise=require(_0xfac2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xfac2('0x5'));var config=require(_0xfac2('0x6'));var attributes=require(_0xfac2('0x7'));module[_0xfac2('0x8')]=function(_0x2547ac,_0xadb7fc){return _0x2547ac[_0xfac2('0x9')]('ZohoField',attributes,{'tableName':_0xfac2('0xa'),'paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':[_0xfac2('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};