Built motion from commit (unavailable).|2.5.25
[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 _0xd584=['request-promise','path','rimraf','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','util','../../config/logger','api','moment'];(function(_0x414a39,_0x3fd5aa){var _0x2c1695=function(_0x422802){while(--_0x422802){_0x414a39['push'](_0x414a39['shift']());}};_0x2c1695(++_0x3fd5aa);}(_0xd584,0x1f4));var _0x4d58=function(_0x2a772e,_0x3623ac){_0x2a772e=_0x2a772e-0x0;var _0x46b474=_0xd584[_0x2a772e];return _0x46b474;};'use strict';var _=require('lodash');var util=require(_0x4d58('0x0'));var logger=require(_0x4d58('0x1'))(_0x4d58('0x2'));var moment=require(_0x4d58('0x3'));var BPromise=require('bluebird');var rp=require(_0x4d58('0x4'));var fs=require('fs');var path=require(_0x4d58('0x5'));var rimraf=require(_0x4d58('0x6'));var config=require('../../config/environment');var attributes=require(_0x4d58('0x7'));module[_0x4d58('0x8')]=function(_0x581cde,_0x2addbf){return _0x581cde[_0x4d58('0x9')](_0x4d58('0xa'),attributes,{'tableName':_0x4d58('0xb'),'paranoid':![],'indexes':[{'name':_0x4d58('0xc'),'fields':['resourceId',_0x4d58('0xd')]}],'timestamps':!![]});};