5c2196abcd25178fffa975e4597c50cfab0a24c5
[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 _0x893b=['./intZendeskField.attributes','exports','ZendeskField','int_zendesk_fields','zendesk_unique_index','FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x2acc54,_0x4e1290){var _0x2beeb8=function(_0x31f84a){while(--_0x31f84a){_0x2acc54['push'](_0x2acc54['shift']());}};_0x2beeb8(++_0x4e1290);}(_0x893b,0x18e));var _0xb893=function(_0x2c77e5,_0x2beedc){_0x2c77e5=_0x2c77e5-0x0;var _0x3cceb8=_0x893b[_0x2c77e5];return _0x3cceb8;};'use strict';var _=require(_0xb893('0x0'));var util=require(_0xb893('0x1'));var logger=require(_0xb893('0x2'))('api');var moment=require(_0xb893('0x3'));var BPromise=require(_0xb893('0x4'));var rp=require(_0xb893('0x5'));var fs=require('fs');var path=require(_0xb893('0x6'));var rimraf=require('rimraf');var config=require(_0xb893('0x7'));var attributes=require(_0xb893('0x8'));module[_0xb893('0x9')]=function(_0x42b54c,_0x41743c){return _0x42b54c['define'](_0xb893('0xa'),attributes,{'tableName':_0xb893('0xb'),'paranoid':![],'indexes':[{'name':_0xb893('0xc'),'fields':['idField',_0xb893('0xd')],'unique':!![]}],'timestamps':!![]});};