Built motion from commit da617fac.|2.6.6
[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 _0xade7=['define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','api','moment','bluebird','rimraf','../../config/environment','exports'];(function(_0x594f36,_0x4b4389){var _0x529fae=function(_0x22fcdb){while(--_0x22fcdb){_0x594f36['push'](_0x594f36['shift']());}};_0x529fae(++_0x4b4389);}(_0xade7,0xd8));var _0x7ade=function(_0x4c9e31,_0x13568b){_0x4c9e31=_0x4c9e31-0x0;var _0x386208=_0xade7[_0x4c9e31];return _0x386208;};'use strict';var _=require(_0x7ade('0x0'));var util=require(_0x7ade('0x1'));var logger=require('../../config/logger')(_0x7ade('0x2'));var moment=require(_0x7ade('0x3'));var BPromise=require(_0x7ade('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x7ade('0x5'));var config=require(_0x7ade('0x6'));var attributes=require('./intFreshdeskField.attributes');module[_0x7ade('0x7')]=function(_0x499c20,_0x12f2c7){return _0x499c20[_0x7ade('0x8')](_0x7ade('0x9'),attributes,{'tableName':_0x7ade('0xa'),'paranoid':![],'indexes':[{'name':_0x7ade('0xb'),'fields':[_0x7ade('0xc'),_0x7ade('0xd')],'unique':!![]}],'timestamps':!![]});};