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 _0x7025=['name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','exports','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId'];(function(_0x46165e,_0x149cc8){var _0x528890=function(_0x4a0735){while(--_0x4a0735){_0x46165e['push'](_0x46165e['shift']());}};_0x528890(++_0x149cc8);}(_0x7025,0x1c9));var _0x5702=function(_0xb868bb,_0x5521f3){_0xb868bb=_0xb868bb-0x0;var _0x28d21c=_0x7025[_0xb868bb];return _0x28d21c;};'use strict';var _=require(_0x5702('0x0'));var util=require(_0x5702('0x1'));var logger=require(_0x5702('0x2'))('api');var moment=require('moment');var BPromise=require(_0x5702('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5702('0x4'));var rimraf=require(_0x5702('0x5'));var config=require(_0x5702('0x6'));var attributes=require('./disposition.attributes');module[_0x5702('0x7')]=function(_0x492df6,_0x55075b){return _0x492df6[_0x5702('0x8')](_0x5702('0x9'),attributes,{'tableName':_0x5702('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x5702('0xb'),'fields':[_0x5702('0xc'),_0x5702('0xd')]},{'unique':!![],'name':_0x5702('0xe'),'fields':['name',_0x5702('0xf')]},{'unique':!![],'name':_0x5702('0x10'),'fields':['name',_0x5702('0x11')]},{'unique':!![],'name':_0x5702('0x12'),'fields':[_0x5702('0xc'),_0x5702('0x13')]},{'unique':!![],'name':_0x5702('0x14'),'fields':[_0x5702('0xc'),_0x5702('0x15')]},{'unique':!![],'name':_0x5702('0x16'),'fields':[_0x5702('0xc'),'OpenchannelAccountId']},{'unique':!![],'name':_0x5702('0x17'),'fields':['name',_0x5702('0x18')]}],'timestamps':!![]});};