eaf22cfc6f1e90840f7a3b3889bcb517c7293d72
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0xe1db=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define','UserProfileResource','compositeIndex','resourceId','sectionId'];(function(_0xb26dc6,_0x47c62a){var _0x3ae899=function(_0x48e882){while(--_0x48e882){_0xb26dc6['push'](_0xb26dc6['shift']());}};_0x3ae899(++_0x47c62a);}(_0xe1db,0xd2));var _0xbe1d=function(_0x1b5fc0,_0x1b1920){_0x1b5fc0=_0x1b5fc0-0x0;var _0xece25d=_0xe1db[_0x1b5fc0];return _0xece25d;};'use strict';var _=require(_0xbe1d('0x0'));var util=require(_0xbe1d('0x1'));var logger=require(_0xbe1d('0x2'))(_0xbe1d('0x3'));var moment=require(_0xbe1d('0x4'));var BPromise=require(_0xbe1d('0x5'));var rp=require(_0xbe1d('0x6'));var fs=require('fs');var path=require(_0xbe1d('0x7'));var rimraf=require(_0xbe1d('0x8'));var config=require(_0xbe1d('0x9'));var attributes=require('./userProfileResource.attributes');module['exports']=function(_0xed0dcf,_0x5bf0d5){return _0xed0dcf[_0xbe1d('0xa')](_0xbe1d('0xb'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0xbe1d('0xc'),'fields':[_0xbe1d('0xd'),_0xbe1d('0xe')]}],'timestamps':!![]});};