992506f9814ea66041a57918b9d8e6f1b4bf5b7c
[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 _0xec63=['ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','./intZendeskField.attributes','define'];(function(_0x560894,_0x5ad9ba){var _0x37e22b=function(_0xb7b0b5){while(--_0xb7b0b5){_0x560894['push'](_0x560894['shift']());}};_0x37e22b(++_0x5ad9ba);}(_0xec63,0x155));var _0x3ec6=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xec63[_0x20a584];return _0x4b41a8;};'use strict';var _=require('lodash');var util=require(_0x3ec6('0x0'));var logger=require(_0x3ec6('0x1'))('api');var moment=require(_0x3ec6('0x2'));var BPromise=require(_0x3ec6('0x3'));var rp=require(_0x3ec6('0x4'));var fs=require('fs');var path=require(_0x3ec6('0x5'));var rimraf=require(_0x3ec6('0x6'));var config=require('../../config/environment');var attributes=require(_0x3ec6('0x7'));module['exports']=function(_0x240718,_0x31524a){return _0x240718[_0x3ec6('0x8')](_0x3ec6('0x9'),attributes,{'tableName':_0x3ec6('0xa'),'paranoid':![],'indexes':[{'name':_0x3ec6('0xb'),'fields':[_0x3ec6('0xc'),_0x3ec6('0xd')],'unique':!![]}],'timestamps':!![]});};