29d0ee797a8c0aba7a8896bbe456e65ac5f9bf35
[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 _0xe526=['FreshdeskField','freshdesk_unique_index','idField','FieldId','util','api','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshdeskField.attributes','define'];(function(_0xd03355,_0x2ffd0b){var _0x49bafd=function(_0x32dc40){while(--_0x32dc40){_0xd03355['push'](_0xd03355['shift']());}};_0x49bafd(++_0x2ffd0b);}(_0xe526,0x6c));var _0x6e52=function(_0x5b8a2d,_0x27f682){_0x5b8a2d=_0x5b8a2d-0x0;var _0x3c4bbe=_0xe526[_0x5b8a2d];return _0x3c4bbe;};'use strict';var _=require('lodash');var util=require(_0x6e52('0x0'));var logger=require('../../config/logger')(_0x6e52('0x1'));var moment=require('moment');var BPromise=require(_0x6e52('0x2'));var rp=require(_0x6e52('0x3'));var fs=require('fs');var path=require(_0x6e52('0x4'));var rimraf=require(_0x6e52('0x5'));var config=require(_0x6e52('0x6'));var attributes=require(_0x6e52('0x7'));module['exports']=function(_0xf6cc3a,_0x652124){return _0xf6cc3a[_0x6e52('0x8')](_0x6e52('0x9'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x6e52('0xa'),'fields':[_0x6e52('0xb'),_0x6e52('0xc')],'unique':!![]}],'timestamps':!![]});};