Built motion from commit 47436d59.|2.6.7
[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 _0xcbee=['rimraf','../../config/environment','./intDeskField.attributes','exports','define','DeskField','int_desk_fields','idField','FieldId','lodash','util','api','moment','bluebird','request-promise','path'];(function(_0x3ef46f,_0x4cce6b){var _0x5279f3=function(_0x2e814c){while(--_0x2e814c){_0x3ef46f['push'](_0x3ef46f['shift']());}};_0x5279f3(++_0x4cce6b);}(_0xcbee,0x1e9));var _0xecbe=function(_0x337f11,_0x5548fc){_0x337f11=_0x337f11-0x0;var _0x4ce0ee=_0xcbee[_0x337f11];return _0x4ce0ee;};'use strict';var _=require(_0xecbe('0x0'));var util=require(_0xecbe('0x1'));var logger=require('../../config/logger')(_0xecbe('0x2'));var moment=require(_0xecbe('0x3'));var BPromise=require(_0xecbe('0x4'));var rp=require(_0xecbe('0x5'));var fs=require('fs');var path=require(_0xecbe('0x6'));var rimraf=require(_0xecbe('0x7'));var config=require(_0xecbe('0x8'));var attributes=require(_0xecbe('0x9'));module[_0xecbe('0xa')]=function(_0x470619,_0x354bf7){return _0x470619[_0xecbe('0xb')](_0xecbe('0xc'),attributes,{'tableName':_0xecbe('0xd'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0xecbe('0xe'),_0xecbe('0xf')],'unique':!![]}],'timestamps':!![]});};