7cc7df271dc5ffdb7f8fe122401fcccf622802a0
[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 _0x159e=['idField','FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intDeskField.attributes','exports','define','DeskField','int_desk_fields','desk_unique_index'];(function(_0x11ad20,_0x1ce754){var _0x4dde4c=function(_0x5644f7){while(--_0x5644f7){_0x11ad20['push'](_0x11ad20['shift']());}};_0x4dde4c(++_0x1ce754);}(_0x159e,0x134));var _0xe159=function(_0x455aae,_0x48914f){_0x455aae=_0x455aae-0x0;var _0x1af325=_0x159e[_0x455aae];return _0x1af325;};'use strict';var _=require(_0xe159('0x0'));var util=require(_0xe159('0x1'));var logger=require(_0xe159('0x2'))('api');var moment=require(_0xe159('0x3'));var BPromise=require(_0xe159('0x4'));var rp=require(_0xe159('0x5'));var fs=require('fs');var path=require(_0xe159('0x6'));var rimraf=require(_0xe159('0x7'));var config=require(_0xe159('0x8'));var attributes=require(_0xe159('0x9'));module[_0xe159('0xa')]=function(_0x21b7aa,_0x41ca0f){return _0x21b7aa[_0xe159('0xb')](_0xe159('0xc'),attributes,{'tableName':_0xe159('0xd'),'paranoid':![],'indexes':[{'name':_0xe159('0xe'),'fields':[_0xe159('0xf'),_0xe159('0x10')],'unique':!![]}],'timestamps':!![]});};