Built motion from commit (unavailable).|2.5.4
[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 _0x6e48=['SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index','idField','FieldId','lodash','api','moment','bluebird','request-promise','rimraf','../../config/environment','./intSugarcrmField.attributes','exports','define'];(function(_0x150f8f,_0x2857b1){var _0x17a73c=function(_0xb09669){while(--_0xb09669){_0x150f8f['push'](_0x150f8f['shift']());}};_0x17a73c(++_0x2857b1);}(_0x6e48,0xc8));var _0x86e4=function(_0x377d3d,_0x4e9178){_0x377d3d=_0x377d3d-0x0;var _0x551617=_0x6e48[_0x377d3d];return _0x551617;};'use strict';var _=require(_0x86e4('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x86e4('0x1'));var moment=require(_0x86e4('0x2'));var BPromise=require(_0x86e4('0x3'));var rp=require(_0x86e4('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x86e4('0x5'));var config=require(_0x86e4('0x6'));var attributes=require(_0x86e4('0x7'));module[_0x86e4('0x8')]=function(_0x4ea5ce,_0x5a9c78){return _0x4ea5ce[_0x86e4('0x9')](_0x86e4('0xa'),attributes,{'tableName':_0x86e4('0xb'),'paranoid':![],'indexes':[{'name':_0x86e4('0xc'),'fields':[_0x86e4('0xd'),_0x86e4('0xe')],'unique':!![]}],'timestamps':!![]});};