Built motion from commit ba71417a.|2.6.28
[motion2.git] / server / api / intDeskField / intDeskField.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 _0x32fd=['util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash'];(function(_0x4b619a,_0x5d9d8f){var _0x2c0ad3=function(_0x38b50b){while(--_0x38b50b){_0x4b619a['push'](_0x4b619a['shift']());}};_0x2c0ad3(++_0x5d9d8f);}(_0x32fd,0xbf));var _0xd32f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x32fd[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0xd32f('0x0'));var util=require(_0xd32f('0x1'));var logger=require('../../config/logger')(_0xd32f('0x2'));var moment=require(_0xd32f('0x3'));var BPromise=require(_0xd32f('0x4'));var rp=require(_0xd32f('0x5'));var fs=require('fs');var path=require(_0xd32f('0x6'));var rimraf=require(_0xd32f('0x7'));var config=require(_0xd32f('0x8'));var attributes=require('./intDeskField.attributes');module[_0xd32f('0x9')]=function(_0x294f52,_0x40d9e0){return _0x294f52[_0xd32f('0xa')](_0xd32f('0xb'),attributes,{'tableName':_0xd32f('0xc'),'paranoid':![],'indexes':[{'name':_0xd32f('0xd'),'fields':[_0xd32f('0xe'),_0xd32f('0xf')],'unique':!![]}],'timestamps':!![]});};