Built motion from commit da24aabd.|2.6.20
[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 _0x6d92=['int_zendesk_fields','zendesk_unique_index','FieldId','lodash','util','../../config/logger','api','moment','bluebird','path','../../config/environment','./intZendeskField.attributes','define','ZendeskField'];(function(_0x5305e4,_0x4c9244){var _0x55c74e=function(_0x308dd0){while(--_0x308dd0){_0x5305e4['push'](_0x5305e4['shift']());}};_0x55c74e(++_0x4c9244);}(_0x6d92,0x199));var _0x26d9=function(_0x503870,_0x21feb4){_0x503870=_0x503870-0x0;var _0x3cff2d=_0x6d92[_0x503870];return _0x3cff2d;};'use strict';var _=require(_0x26d9('0x0'));var util=require(_0x26d9('0x1'));var logger=require(_0x26d9('0x2'))(_0x26d9('0x3'));var moment=require(_0x26d9('0x4'));var BPromise=require(_0x26d9('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x26d9('0x6'));var rimraf=require('rimraf');var config=require(_0x26d9('0x7'));var attributes=require(_0x26d9('0x8'));module['exports']=function(_0xd7721,_0x1f764f){return _0xd7721[_0x26d9('0x9')](_0x26d9('0xa'),attributes,{'tableName':_0x26d9('0xb'),'paranoid':![],'indexes':[{'name':_0x26d9('0xc'),'fields':['idField',_0x26d9('0xd')],'unique':!![]}],'timestamps':!![]});};