Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x6c9c=['rimraf','../../config/environment','./intFreshsalesField.attributes','exports','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','FieldId','lodash','util','api','moment','bluebird','request-promise'];(function(_0xa3da5a,_0x11db36){var _0x89ecec=function(_0x4e35cb){while(--_0x4e35cb){_0xa3da5a['push'](_0xa3da5a['shift']());}};_0x89ecec(++_0x11db36);}(_0x6c9c,0x12a));var _0xc6c9=function(_0x516e84,_0x390914){_0x516e84=_0x516e84-0x0;var _0x390239=_0x6c9c[_0x516e84];return _0x390239;};'use strict';var _=require(_0xc6c9('0x0'));var util=require(_0xc6c9('0x1'));var logger=require('../../config/logger')(_0xc6c9('0x2'));var moment=require(_0xc6c9('0x3'));var BPromise=require(_0xc6c9('0x4'));var rp=require(_0xc6c9('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xc6c9('0x6'));var config=require(_0xc6c9('0x7'));var attributes=require(_0xc6c9('0x8'));module[_0xc6c9('0x9')]=function(_0x422195,_0x84b96e){return _0x422195[_0xc6c9('0xa')](_0xc6c9('0xb'),attributes,{'tableName':_0xc6c9('0xc'),'paranoid':![],'indexes':[{'name':_0xc6c9('0xd'),'fields':[_0xc6c9('0xe'),_0xc6c9('0xf')],'unique':!![]}],'timestamps':!![]});};