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 _0xd1ec=['idField','FieldId','util','api','moment','bluebird','path','rimraf','../../config/environment','./intSugarcrmField.attributes','define','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index'];(function(_0x316600,_0x5a2123){var _0x2fd7aa=function(_0x3747a5){while(--_0x3747a5){_0x316600['push'](_0x316600['shift']());}};_0x2fd7aa(++_0x5a2123);}(_0xd1ec,0x198));var _0xcd1e=function(_0x310113,_0x3508dd){_0x310113=_0x310113-0x0;var _0x272bba=_0xd1ec[_0x310113];return _0x272bba;};'use strict';var _=require('lodash');var util=require(_0xcd1e('0x0'));var logger=require('../../config/logger')(_0xcd1e('0x1'));var moment=require(_0xcd1e('0x2'));var BPromise=require(_0xcd1e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xcd1e('0x4'));var rimraf=require(_0xcd1e('0x5'));var config=require(_0xcd1e('0x6'));var attributes=require(_0xcd1e('0x7'));module['exports']=function(_0x107c04,_0x14720f){return _0x107c04[_0xcd1e('0x8')](_0xcd1e('0x9'),attributes,{'tableName':_0xcd1e('0xa'),'paranoid':![],'indexes':[{'name':_0xcd1e('0xb'),'fields':[_0xcd1e('0xc'),_0xcd1e('0xd')],'unique':!![]}],'timestamps':!![]});};