14b0901cffd46a2a177bccc0aa2712de64756260
[motion2.git] / server / api / cmCompany / cmCompany.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 _0x3ea8=['exports','CmCompany','cm_companies','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x592e40,_0x2ed011){var _0x5d4288=function(_0x366e87){while(--_0x366e87){_0x592e40['push'](_0x592e40['shift']());}};_0x5d4288(++_0x2ed011);}(_0x3ea8,0x158));var _0x83ea=function(_0x32464e,_0x2b0595){_0x32464e=_0x32464e-0x0;var _0x974b58=_0x3ea8[_0x32464e];return _0x974b58;};'use strict';var _=require(_0x83ea('0x0'));var util=require(_0x83ea('0x1'));var logger=require(_0x83ea('0x2'))('api');var moment=require(_0x83ea('0x3'));var BPromise=require(_0x83ea('0x4'));var rp=require(_0x83ea('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x83ea('0x6'));var config=require(_0x83ea('0x7'));var attributes=require('./cmCompany.attributes');module[_0x83ea('0x8')]=function(_0x5a10f8,_0x126b25){return _0x5a10f8['define'](_0x83ea('0x9'),attributes,{'tableName':_0x83ea('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};