Built motion from commit (unavailable).|2.5.1
[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 _0xc196=['rimraf','../../config/environment','./userProfileSection.attributes','exports','define','UserProfileSection','user_profile_has_sections','sectionId','userProfileId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x154f0a,_0x3b9f03){var _0x580a02=function(_0xed88e4){while(--_0xed88e4){_0x154f0a['push'](_0x154f0a['shift']());}};_0x580a02(++_0x3b9f03);}(_0xc196,0x1bc));var _0x6c19=function(_0x752a8e,_0x1c10ad){_0x752a8e=_0x752a8e-0x0;var _0x52d88e=_0xc196[_0x752a8e];return _0x52d88e;};'use strict';var _=require(_0x6c19('0x0'));var util=require(_0x6c19('0x1'));var logger=require(_0x6c19('0x2'))(_0x6c19('0x3'));var moment=require(_0x6c19('0x4'));var BPromise=require(_0x6c19('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x6c19('0x6'));var config=require(_0x6c19('0x7'));var attributes=require(_0x6c19('0x8'));module[_0x6c19('0x9')]=function(_0x448488,_0x589fd3){return _0x448488[_0x6c19('0xa')](_0x6c19('0xb'),attributes,{'tableName':_0x6c19('0xc'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x6c19('0xd'),_0x6c19('0xe')]}],'timestamps':!![]});};