Built motion from commit 616d3211.|2.6.4
[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 _0x29ff=['lodash','util','../../config/logger','moment','bluebird','request-promise','../../config/environment','./intDeskField.attributes','exports','define','int_desk_fields','desk_unique_index','idField','FieldId'];(function(_0x221fc7,_0x31c8de){var _0xea485e=function(_0x1e32fb){while(--_0x1e32fb){_0x221fc7['push'](_0x221fc7['shift']());}};_0xea485e(++_0x31c8de);}(_0x29ff,0xfc));var _0xf29f=function(_0x5ec544,_0x31a0c5){_0x5ec544=_0x5ec544-0x0;var _0x15d14e=_0x29ff[_0x5ec544];return _0x15d14e;};'use strict';var _=require(_0xf29f('0x0'));var util=require(_0xf29f('0x1'));var logger=require(_0xf29f('0x2'))('api');var moment=require(_0xf29f('0x3'));var BPromise=require(_0xf29f('0x4'));var rp=require(_0xf29f('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xf29f('0x6'));var attributes=require(_0xf29f('0x7'));module[_0xf29f('0x8')]=function(_0x5c5517,_0x4a900c){return _0x5c5517[_0xf29f('0x9')]('DeskField',attributes,{'tableName':_0xf29f('0xa'),'paranoid':![],'indexes':[{'name':_0xf29f('0xb'),'fields':[_0xf29f('0xc'),_0xf29f('0xd')],'unique':!![]}],'timestamps':!![]});};