Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0x38fa=['path','rimraf','./intFreshdeskField.attributes','exports','define','FreshdeskField','freshdesk_unique_index','idField','FieldId','util','../../config/logger','api','request-promise'];(function(_0x5618c4,_0x4e8f57){var _0xdf390f=function(_0x1406cb){while(--_0x1406cb){_0x5618c4['push'](_0x5618c4['shift']());}};_0xdf390f(++_0x4e8f57);}(_0x38fa,0x1c3));var _0xa38f=function(_0xdadc99,_0x4998e4){_0xdadc99=_0xdadc99-0x0;var _0x1cdbf7=_0x38fa[_0xdadc99];return _0x1cdbf7;};'use strict';var _=require('lodash');var util=require(_0xa38f('0x0'));var logger=require(_0xa38f('0x1'))(_0xa38f('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa38f('0x3'));var fs=require('fs');var path=require(_0xa38f('0x4'));var rimraf=require(_0xa38f('0x5'));var config=require('../../config/environment');var attributes=require(_0xa38f('0x6'));module[_0xa38f('0x7')]=function(_0x17ebf1,_0x23edbf){return _0x17ebf1[_0xa38f('0x8')](_0xa38f('0x9'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0xa38f('0xa'),'fields':[_0xa38f('0xb'),_0xa38f('0xc')],'unique':!![]}],'timestamps':!![]});};