0f38b1faaaaa2c9517fbf9ff8afdbd0cf559f24e
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0x3b93=['sectionId','userProfileId','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections'];(function(_0x13be43,_0x1261e8){var _0x2b5d2f=function(_0x4a979f){while(--_0x4a979f){_0x13be43['push'](_0x13be43['shift']());}};_0x2b5d2f(++_0x1261e8);}(_0x3b93,0x92));var _0x33b9=function(_0x21a3f0,_0x155071){_0x21a3f0=_0x21a3f0-0x0;var _0x289209=_0x3b93[_0x21a3f0];return _0x289209;};'use strict';var _=require('lodash');var util=require(_0x33b9('0x0'));var logger=require(_0x33b9('0x1'))(_0x33b9('0x2'));var moment=require(_0x33b9('0x3'));var BPromise=require(_0x33b9('0x4'));var rp=require(_0x33b9('0x5'));var fs=require('fs');var path=require(_0x33b9('0x6'));var rimraf=require(_0x33b9('0x7'));var config=require(_0x33b9('0x8'));var attributes=require(_0x33b9('0x9'));module[_0x33b9('0xa')]=function(_0x51d85c,_0x1ab793){return _0x51d85c[_0x33b9('0xb')](_0x33b9('0xc'),attributes,{'tableName':_0x33b9('0xd'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x33b9('0xe'),_0x33b9('0xf')]}],'timestamps':!![]});};