162a12b2af8391a16e58414422fb1b00fa93ffb4
[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 _0x46f6=['compositeIndex','resourceId','sectionId','util','../../config/logger','api','moment','bluebird','rimraf','../../config/environment','./userProfileResource.attributes','define','UserProfileResource','user_profile_has_resources'];(function(_0x1dc237,_0x1eb38e){var _0x54fc6f=function(_0x2822a0){while(--_0x2822a0){_0x1dc237['push'](_0x1dc237['shift']());}};_0x54fc6f(++_0x1eb38e);}(_0x46f6,0x18b));var _0x646f=function(_0x1b6293,_0x265c05){_0x1b6293=_0x1b6293-0x0;var _0x546581=_0x46f6[_0x1b6293];return _0x546581;};'use strict';var _=require('lodash');var util=require(_0x646f('0x0'));var logger=require(_0x646f('0x1'))(_0x646f('0x2'));var moment=require(_0x646f('0x3'));var BPromise=require(_0x646f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x646f('0x5'));var config=require(_0x646f('0x6'));var attributes=require(_0x646f('0x7'));module['exports']=function(_0x78b69a,_0x2d01b5){return _0x78b69a[_0x646f('0x8')](_0x646f('0x9'),attributes,{'tableName':_0x646f('0xa'),'paranoid':![],'indexes':[{'name':_0x646f('0xb'),'fields':[_0x646f('0xc'),_0x646f('0xd')]}],'timestamps':!![]});};