e2da6c6f8fbce5911bc3e348f4e487edc6e7a6ac
[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 _0xe489=['idField','FieldId','lodash','util','api','moment','bluebird','request-promise','path','./intFreshdeskField.attributes','define','FreshdeskField','freshdesk_unique_index'];(function(_0x58fc2f,_0x111399){var _0x3a1312=function(_0x3d2ff2){while(--_0x3d2ff2){_0x58fc2f['push'](_0x58fc2f['shift']());}};_0x3a1312(++_0x111399);}(_0xe489,0x9e));var _0x9e48=function(_0x1accb4,_0x29aa72){_0x1accb4=_0x1accb4-0x0;var _0x30e29b=_0xe489[_0x1accb4];return _0x30e29b;};'use strict';var _=require(_0x9e48('0x0'));var util=require(_0x9e48('0x1'));var logger=require('../../config/logger')(_0x9e48('0x2'));var moment=require(_0x9e48('0x3'));var BPromise=require(_0x9e48('0x4'));var rp=require(_0x9e48('0x5'));var fs=require('fs');var path=require(_0x9e48('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x9e48('0x7'));module['exports']=function(_0x9b6c19,_0x42747f){return _0x9b6c19[_0x9e48('0x8')](_0x9e48('0x9'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x9e48('0xa'),'fields':[_0x9e48('0xb'),_0x9e48('0xc')],'unique':!![]}],'timestamps':!![]});};