090910b40d6227837d77a9e908f6f671813ecbb9
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.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 _0xe812=['bluebird','request-promise','path','rimraf','../../config/environment','./intSugarcrmField.attributes','exports','int_sugarcrm_fields','sugarcrm_unique_index','idField','lodash','api','moment'];(function(_0x4d927a,_0xa3c30){var _0x175ba9=function(_0x4ae960){while(--_0x4ae960){_0x4d927a['push'](_0x4d927a['shift']());}};_0x175ba9(++_0xa3c30);}(_0xe812,0x169));var _0x2e81=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0xe812[_0x4b369d];return _0x571a98;};'use strict';var _=require(_0x2e81('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x2e81('0x1'));var moment=require(_0x2e81('0x2'));var BPromise=require(_0x2e81('0x3'));var rp=require(_0x2e81('0x4'));var fs=require('fs');var path=require(_0x2e81('0x5'));var rimraf=require(_0x2e81('0x6'));var config=require(_0x2e81('0x7'));var attributes=require(_0x2e81('0x8'));module[_0x2e81('0x9')]=function(_0x4596a0,_0x299d78){return _0x4596a0['define']('SugarcrmField',attributes,{'tableName':_0x2e81('0xa'),'paranoid':![],'indexes':[{'name':_0x2e81('0xb'),'fields':[_0x2e81('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};