ac3f5e48cc4fece5e37e2f058e3e578407a18825
[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 _0x5996=['../../config/environment','./cmCompany.attributes','exports','define','CmCompany','cm_companies','lodash','util','api','bluebird','request-promise','rimraf'];(function(_0xfc5a04,_0xb77332){var _0x24b690=function(_0x544d54){while(--_0x544d54){_0xfc5a04['push'](_0xfc5a04['shift']());}};_0x24b690(++_0xb77332);}(_0x5996,0x132));var _0x6599=function(_0x4535f8,_0x4719fb){_0x4535f8=_0x4535f8-0x0;var _0x5abdad=_0x5996[_0x4535f8];return _0x5abdad;};'use strict';var _=require(_0x6599('0x0'));var util=require(_0x6599('0x1'));var logger=require('../../config/logger')(_0x6599('0x2'));var moment=require('moment');var BPromise=require(_0x6599('0x3'));var rp=require(_0x6599('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x6599('0x5'));var config=require(_0x6599('0x6'));var attributes=require(_0x6599('0x7'));module[_0x6599('0x8')]=function(_0x4dc22c,_0x222da1){return _0x4dc22c[_0x6599('0x9')](_0x6599('0xa'),attributes,{'tableName':_0x6599('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};