afd08ae80de476845cb99b5a09484085d55e0d17
[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 _0x5a13=['int_freshsales_fields','freshsales_unique_index','idField','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','./intFreshsalesField.attributes','define','FreshsalesField'];(function(_0x1c4b46,_0x26ba44){var _0x32f50c=function(_0x4593f0){while(--_0x4593f0){_0x1c4b46['push'](_0x1c4b46['shift']());}};_0x32f50c(++_0x26ba44);}(_0x5a13,0x92));var _0x35a1=function(_0x138242,_0x5053df){_0x138242=_0x138242-0x0;var _0x3b6192=_0x5a13[_0x138242];return _0x3b6192;};'use strict';var _=require('lodash');var util=require(_0x35a1('0x0'));var logger=require(_0x35a1('0x1'))(_0x35a1('0x2'));var moment=require(_0x35a1('0x3'));var BPromise=require(_0x35a1('0x4'));var rp=require(_0x35a1('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x35a1('0x6'));var config=require('../../config/environment');var attributes=require(_0x35a1('0x7'));module['exports']=function(_0x537654,_0x53cadb){return _0x537654[_0x35a1('0x8')](_0x35a1('0x9'),attributes,{'tableName':_0x35a1('0xa'),'paranoid':![],'indexes':[{'name':_0x35a1('0xb'),'fields':[_0x35a1('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};