1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xa9e9=['define','CmContactHasItem','cm_contact_has_items','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','exports'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0xa9e9,0x1e7));var _0x9a9e=function(_0x307729,_0x38e7c0){_0x307729=_0x307729-0x0;var _0x26ea8e=_0xa9e9[_0x307729];return _0x26ea8e;};'use strict';var _=require(_0x9a9e('0x0'));var util=require(_0x9a9e('0x1'));var logger=require(_0x9a9e('0x2'))('api');var moment=require(_0x9a9e('0x3'));var BPromise=require(_0x9a9e('0x4'));var rp=require(_0x9a9e('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9a9e('0x6'));var config=require('../../config/environment');var attributes=require('./cmContactHasItem.attributes');module[_0x9a9e('0x7')]=function(_0x2e2e3b,_0x527f9d){return _0x2e2e3b[_0x9a9e('0x8')](_0x9a9e('0x9'),attributes,{'tableName':_0x9a9e('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};