Built motion from commit eddce310.|2.6.12
[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 _0xfceb=['bluebird','path','../../config/environment','./cmCompany.attributes','exports','define','CmCompany','cm_companies','lodash','../../config/logger','api','moment'];(function(_0x4347ec,_0x41c4b8){var _0x4c8314=function(_0x583acd){while(--_0x583acd){_0x4347ec['push'](_0x4347ec['shift']());}};_0x4c8314(++_0x41c4b8);}(_0xfceb,0x1b8));var _0xbfce=function(_0x5e6761,_0xb676b7){_0x5e6761=_0x5e6761-0x0;var _0x2355ed=_0xfceb[_0x5e6761];return _0x2355ed;};'use strict';var _=require(_0xbfce('0x0'));var util=require('util');var logger=require(_0xbfce('0x1'))(_0xbfce('0x2'));var moment=require(_0xbfce('0x3'));var BPromise=require(_0xbfce('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbfce('0x5'));var rimraf=require('rimraf');var config=require(_0xbfce('0x6'));var attributes=require(_0xbfce('0x7'));module[_0xbfce('0x8')]=function(_0x3f96ff,_0x2a5369){return _0x3f96ff[_0xbfce('0x9')](_0xbfce('0xa'),attributes,{'tableName':_0xbfce('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};