132c644faaf173f4708cb5da85e2c12b0114f360
[motion2.git] / server / api / intZendeskField / intZendeskField.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 _0xae87=['idField','FieldId','moment','bluebird','path','./intZendeskField.attributes','exports','ZendeskField','int_zendesk_fields','zendesk_unique_index'];(function(_0x11e323,_0x4750e4){var _0x391751=function(_0x32a0f3){while(--_0x32a0f3){_0x11e323['push'](_0x11e323['shift']());}};_0x391751(++_0x4750e4);}(_0xae87,0x1ce));var _0x7ae8=function(_0x4b26b5,_0x4f71fd){_0x4b26b5=_0x4b26b5-0x0;var _0x4dec71=_0xae87[_0x4b26b5];return _0x4dec71;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x7ae8('0x0'));var BPromise=require(_0x7ae8('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7ae8('0x2'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x7ae8('0x3'));module[_0x7ae8('0x4')]=function(_0x141978,_0x3b6a2d){return _0x141978['define'](_0x7ae8('0x5'),attributes,{'tableName':_0x7ae8('0x6'),'paranoid':![],'indexes':[{'name':_0x7ae8('0x7'),'fields':[_0x7ae8('0x8'),_0x7ae8('0x9')],'unique':!![]}],'timestamps':!![]});};