10ef07923e2d5abcc63193c63c040e062f2840c1
[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 _0x6c9a=['exports','define','CmCompany','cm_companies','lodash','../../config/logger','api','request-promise','../../config/environment','./cmCompany.attributes'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x6c9a,0xb8));var _0xa6c9=function(_0xfd1fb7,_0x497714){_0xfd1fb7=_0xfd1fb7-0x0;var _0xdca930=_0x6c9a[_0xfd1fb7];return _0xdca930;};'use strict';var _=require(_0xa6c9('0x0'));var util=require('util');var logger=require(_0xa6c9('0x1'))(_0xa6c9('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa6c9('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xa6c9('0x4'));var attributes=require(_0xa6c9('0x5'));module[_0xa6c9('0x6')]=function(_0x1e8411,_0x256c4e){return _0x1e8411[_0xa6c9('0x7')](_0xa6c9('0x8'),attributes,{'tableName':_0xa6c9('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};