eb657b83e35adecc20aa175a1eb2ee84ad6f0705
[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 _0xb022=['sectionId','userProfileId','lodash','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','exports','define','UserProfileSection','user_profile_has_sections','compositeIndex'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xb022,0x1e2));var _0x2b02=function(_0x297fd3,_0x115406){_0x297fd3=_0x297fd3-0x0;var _0x2af381=_0xb022[_0x297fd3];return _0x2af381;};'use strict';var _=require(_0x2b02('0x0'));var util=require(_0x2b02('0x1'));var logger=require(_0x2b02('0x2'))(_0x2b02('0x3'));var moment=require(_0x2b02('0x4'));var BPromise=require('bluebird');var rp=require(_0x2b02('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2b02('0x6'));var config=require(_0x2b02('0x7'));var attributes=require('./userProfileSection.attributes');module[_0x2b02('0x8')]=function(_0x37a3d9,_0x6211d5){return _0x37a3d9[_0x2b02('0x9')](_0x2b02('0xa'),attributes,{'tableName':_0x2b02('0xb'),'paranoid':![],'indexes':[{'name':_0x2b02('0xc'),'fields':[_0x2b02('0xd'),_0x2b02('0xe')]}],'timestamps':!![]});};