Built motion from commit 25580385.|2.6.2
[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 _0xe6a4=['rimraf','../../config/environment','./intDeskField.attributes','define','DeskField','int_desk_fields','idField','FieldId','lodash','../../config/logger','moment','bluebird','request-promise'];(function(_0x14eb63,_0x2f28b2){var _0x1cfb47=function(_0x2f5aa7){while(--_0x2f5aa7){_0x14eb63['push'](_0x14eb63['shift']());}};_0x1cfb47(++_0x2f28b2);}(_0xe6a4,0x14d));var _0x4e6a=function(_0x42e7c0,_0x1a6f9c){_0x42e7c0=_0x42e7c0-0x0;var _0x4994f8=_0xe6a4[_0x42e7c0];return _0x4994f8;};'use strict';var _=require(_0x4e6a('0x0'));var util=require('util');var logger=require(_0x4e6a('0x1'))('api');var moment=require(_0x4e6a('0x2'));var BPromise=require(_0x4e6a('0x3'));var rp=require(_0x4e6a('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4e6a('0x5'));var config=require(_0x4e6a('0x6'));var attributes=require(_0x4e6a('0x7'));module['exports']=function(_0x870aa2,_0x36ea09){return _0x870aa2[_0x4e6a('0x8')](_0x4e6a('0x9'),attributes,{'tableName':_0x4e6a('0xa'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x4e6a('0xb'),_0x4e6a('0xc')],'unique':!![]}],'timestamps':!![]});};