Built motion from commit a679711e.|2.6.15
[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 _0x1fb1=['bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','define','UserProfileResource','user_profile_has_resources','resourceId','sectionId','lodash','util','api','moment'];(function(_0x26bbb6,_0x3be6f8){var _0x5b23c4=function(_0x405c73){while(--_0x405c73){_0x26bbb6['push'](_0x26bbb6['shift']());}};_0x5b23c4(++_0x3be6f8);}(_0x1fb1,0xec));var _0x11fb=function(_0x1e3dd2,_0x1c5f2c){_0x1e3dd2=_0x1e3dd2-0x0;var _0x3cf968=_0x1fb1[_0x1e3dd2];return _0x3cf968;};'use strict';var _=require(_0x11fb('0x0'));var util=require(_0x11fb('0x1'));var logger=require('../../config/logger')(_0x11fb('0x2'));var moment=require(_0x11fb('0x3'));var BPromise=require(_0x11fb('0x4'));var rp=require(_0x11fb('0x5'));var fs=require('fs');var path=require(_0x11fb('0x6'));var rimraf=require(_0x11fb('0x7'));var config=require(_0x11fb('0x8'));var attributes=require(_0x11fb('0x9'));module['exports']=function(_0x3f5528,_0x16f532){return _0x3f5528[_0x11fb('0xa')](_0x11fb('0xb'),attributes,{'tableName':_0x11fb('0xc'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x11fb('0xd'),_0x11fb('0xe')]}],'timestamps':!![]});};