Built motion from commit (unavailable).|2.5.14
[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 _0x924a=['sectionId','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId'];(function(_0x2c309d,_0x218c55){var _0x31f0a6=function(_0x4b9918){while(--_0x4b9918){_0x2c309d['push'](_0x2c309d['shift']());}};_0x31f0a6(++_0x218c55);}(_0x924a,0x79));var _0xa924=function(_0x598390,_0x3add71){_0x598390=_0x598390-0x0;var _0x2380a6=_0x924a[_0x598390];return _0x2380a6;};'use strict';var _=require(_0xa924('0x0'));var util=require(_0xa924('0x1'));var logger=require(_0xa924('0x2'))(_0xa924('0x3'));var moment=require(_0xa924('0x4'));var BPromise=require('bluebird');var rp=require(_0xa924('0x5'));var fs=require('fs');var path=require(_0xa924('0x6'));var rimraf=require(_0xa924('0x7'));var config=require('../../config/environment');var attributes=require('./userProfileResource.attributes');module[_0xa924('0x8')]=function(_0x1bd52d,_0x53a092){return _0x1bd52d[_0xa924('0x9')](_0xa924('0xa'),attributes,{'tableName':_0xa924('0xb'),'paranoid':![],'indexes':[{'name':_0xa924('0xc'),'fields':[_0xa924('0xd'),_0xa924('0xe')]}],'timestamps':!![]});};