Built motion from commit (unavailable).|2.4.4
[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 _0xf1fa=['request-promise','path','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util','../../config/logger','api','bluebird'];(function(_0x2a7b1a,_0x59c578){var _0x4e67b3=function(_0x3a8688){while(--_0x3a8688){_0x2a7b1a['push'](_0x2a7b1a['shift']());}};_0x4e67b3(++_0x59c578);}(_0xf1fa,0x1db));var _0xaf1f=function(_0x10e175,_0x5af560){_0x10e175=_0x10e175-0x0;var _0x59ab2d=_0xf1fa[_0x10e175];return _0x59ab2d;};'use strict';var _=require(_0xaf1f('0x0'));var util=require(_0xaf1f('0x1'));var logger=require(_0xaf1f('0x2'))(_0xaf1f('0x3'));var moment=require('moment');var BPromise=require(_0xaf1f('0x4'));var rp=require(_0xaf1f('0x5'));var fs=require('fs');var path=require(_0xaf1f('0x6'));var rimraf=require('rimraf');var config=require(_0xaf1f('0x7'));var attributes=require(_0xaf1f('0x8'));module[_0xaf1f('0x9')]=function(_0xa84c21,_0x35e0f3){return _0xa84c21[_0xaf1f('0xa')](_0xaf1f('0xb'),attributes,{'tableName':_0xaf1f('0xc'),'paranoid':![],'indexes':[{'name':_0xaf1f('0xd'),'fields':['resourceId',_0xaf1f('0xe')]}],'timestamps':!![]});};