528efbd05c8dc298438eb2fb9935fc068d37202f
[motion2.git] / server / api / disposition / disposition.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 _0xfef5=['request-promise','path','rimraf','../../config/environment','./disposition.attributes','define','Disposition','tools_dispositions','name_voice','name','name_chat','name_mail','MailAccountId','name_sms','name_fax','FaxAccountId','name_openchannel','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x346a46,_0x3ce5e1){var _0x46dcd2=function(_0x1eec95){while(--_0x1eec95){_0x346a46['push'](_0x346a46['shift']());}};_0x46dcd2(++_0x3ce5e1);}(_0xfef5,0xc2));var _0x5fef=function(_0xd77531,_0xba28ed){_0xd77531=_0xd77531-0x0;var _0x212dbc=_0xfef5[_0xd77531];return _0x212dbc;};'use strict';var _=require(_0x5fef('0x0'));var util=require(_0x5fef('0x1'));var logger=require(_0x5fef('0x2'))(_0x5fef('0x3'));var moment=require(_0x5fef('0x4'));var BPromise=require(_0x5fef('0x5'));var rp=require(_0x5fef('0x6'));var fs=require('fs');var path=require(_0x5fef('0x7'));var rimraf=require(_0x5fef('0x8'));var config=require(_0x5fef('0x9'));var attributes=require(_0x5fef('0xa'));module['exports']=function(_0x5525bc,_0x279a48){return _0x5525bc[_0x5fef('0xb')](_0x5fef('0xc'),attributes,{'tableName':_0x5fef('0xd'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x5fef('0xe'),'fields':[_0x5fef('0xf'),'ListId']},{'unique':!![],'name':_0x5fef('0x10'),'fields':[_0x5fef('0xf'),'ChatWebsiteId']},{'unique':!![],'name':_0x5fef('0x11'),'fields':[_0x5fef('0xf'),_0x5fef('0x12')]},{'unique':!![],'name':_0x5fef('0x13'),'fields':['name','SmsAccountId']},{'unique':!![],'name':_0x5fef('0x14'),'fields':['name',_0x5fef('0x15')]},{'unique':!![],'name':_0x5fef('0x16'),'fields':[_0x5fef('0xf'),'OpenchannelAccountId']},{'unique':!![],'name':_0x5fef('0x17'),'fields':[_0x5fef('0xf'),_0x5fef('0x18')]}],'timestamps':!![]});};