Built motion from commit (unavailable).|2.4.3
[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 _0x7fdd=['UserProfileResource','resourceId','util','api','moment','bluebird','request-promise','path','rimraf','./userProfileResource.attributes','define'];(function(_0x4801a0,_0x252c24){var _0x338e26=function(_0x1599c2){while(--_0x1599c2){_0x4801a0['push'](_0x4801a0['shift']());}};_0x338e26(++_0x252c24);}(_0x7fdd,0xf4));var _0xd7fd=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x7fdd[_0x14add3];return _0x4a174f;};'use strict';var _=require('lodash');var util=require(_0xd7fd('0x0'));var logger=require('../../config/logger')(_0xd7fd('0x1'));var moment=require(_0xd7fd('0x2'));var BPromise=require(_0xd7fd('0x3'));var rp=require(_0xd7fd('0x4'));var fs=require('fs');var path=require(_0xd7fd('0x5'));var rimraf=require(_0xd7fd('0x6'));var config=require('../../config/environment');var attributes=require(_0xd7fd('0x7'));module['exports']=function(_0x51fcb7,_0x1547f2){return _0x51fcb7[_0xd7fd('0x8')](_0xd7fd('0x9'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xd7fd('0xa'),'sectionId']}],'timestamps':!![]});};