Built motion from commit (unavailable).|2.5.11
[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 _0x0044=['request-promise','path','rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','userProfileId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x2ca616,_0x384ec8){var _0x53155f=function(_0x108627){while(--_0x108627){_0x2ca616['push'](_0x2ca616['shift']());}};_0x53155f(++_0x384ec8);}(_0x0044,0xfa));var _0x4004=function(_0x176329,_0x568c84){_0x176329=_0x176329-0x0;var _0x31997c=_0x0044[_0x176329];return _0x31997c;};'use strict';var _=require(_0x4004('0x0'));var util=require(_0x4004('0x1'));var logger=require(_0x4004('0x2'))(_0x4004('0x3'));var moment=require(_0x4004('0x4'));var BPromise=require(_0x4004('0x5'));var rp=require(_0x4004('0x6'));var fs=require('fs');var path=require(_0x4004('0x7'));var rimraf=require(_0x4004('0x8'));var config=require(_0x4004('0x9'));var attributes=require(_0x4004('0xa'));module[_0x4004('0xb')]=function(_0x162006,_0x451721){return _0x162006[_0x4004('0xc')](_0x4004('0xd'),attributes,{'tableName':_0x4004('0xe'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':['sectionId',_0x4004('0xf')]}],'timestamps':!![]});};