f25b0bc0f26348c3c5a7036840e28307072b6e38
[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 _0x501f=['../../config/logger','api','request-promise','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','util'];(function(_0x273dc5,_0x268a81){var _0x46dae7=function(_0x263d62){while(--_0x263d62){_0x273dc5['push'](_0x273dc5['shift']());}};_0x46dae7(++_0x268a81);}(_0x501f,0x1db));var _0xf501=function(_0xba4839,_0x575d37){_0xba4839=_0xba4839-0x0;var _0x1969c8=_0x501f[_0xba4839];return _0x1969c8;};'use strict';var _=require('lodash');var util=require(_0xf501('0x0'));var logger=require(_0xf501('0x1'))(_0xf501('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf501('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xf501('0x4'));var config=require(_0xf501('0x5'));var attributes=require(_0xf501('0x6'));module[_0xf501('0x7')]=function(_0x528848,_0x3d6096){return _0x528848[_0xf501('0x8')](_0xf501('0x9'),attributes,{'tableName':_0xf501('0xa'),'paranoid':![],'indexes':[{'name':_0xf501('0xb'),'fields':[_0xf501('0xc'),_0xf501('0xd')],'unique':!![]}],'timestamps':!![]});};