Built motion from commit a679711e.|2.6.15
[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 _0x87f0=['util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','exports','define','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash'];(function(_0x1602ef,_0x447aba){var _0x5870ee=function(_0x4d94e7){while(--_0x4d94e7){_0x1602ef['push'](_0x1602ef['shift']());}};_0x5870ee(++_0x447aba);}(_0x87f0,0x167));var _0x087f=function(_0x2f89d4,_0x55357d){_0x2f89d4=_0x2f89d4-0x0;var _0x7d2dc2=_0x87f0[_0x2f89d4];return _0x7d2dc2;};'use strict';var _=require(_0x087f('0x0'));var util=require(_0x087f('0x1'));var logger=require(_0x087f('0x2'))(_0x087f('0x3'));var moment=require('moment');var BPromise=require(_0x087f('0x4'));var rp=require(_0x087f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x087f('0x6'));var config=require(_0x087f('0x7'));var attributes=require('./intDeskField.attributes');module[_0x087f('0x8')]=function(_0x1469df,_0x58426a){return _0x1469df[_0x087f('0x9')](_0x087f('0xa'),attributes,{'tableName':_0x087f('0xb'),'paranoid':![],'indexes':[{'name':_0x087f('0xc'),'fields':[_0x087f('0xd'),_0x087f('0xe')],'unique':!![]}],'timestamps':!![]});};