Built motion from commit (unavailable).|2.5.26
[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 _0xece0=['MailAccountId','name_sms','SmsAccountId','FaxAccountId','WhatsappAccountId','lodash','util','api','moment','request-promise','path','rimraf','exports','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat'];(function(_0x30d1ae,_0x3e076d){var _0x207e15=function(_0x5366a6){while(--_0x5366a6){_0x30d1ae['push'](_0x30d1ae['shift']());}};_0x207e15(++_0x3e076d);}(_0xece0,0xa5));var _0x0ece=function(_0x115d5b,_0x26aff2){_0x115d5b=_0x115d5b-0x0;var _0x6cfc50=_0xece0[_0x115d5b];return _0x6cfc50;};'use strict';var _=require(_0x0ece('0x0'));var util=require(_0x0ece('0x1'));var logger=require('../../config/logger')(_0x0ece('0x2'));var moment=require(_0x0ece('0x3'));var BPromise=require('bluebird');var rp=require(_0x0ece('0x4'));var fs=require('fs');var path=require(_0x0ece('0x5'));var rimraf=require(_0x0ece('0x6'));var config=require('../../config/environment');var attributes=require('./disposition.attributes');module[_0x0ece('0x7')]=function(_0x3a107d,_0xb736f9){return _0x3a107d[_0x0ece('0x8')](_0x0ece('0x9'),attributes,{'tableName':_0x0ece('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x0ece('0xb'),'fields':[_0x0ece('0xc'),_0x0ece('0xd')]},{'unique':!![],'name':_0x0ece('0xe'),'fields':[_0x0ece('0xc'),'ChatWebsiteId']},{'unique':!![],'name':'name_mail','fields':[_0x0ece('0xc'),_0x0ece('0xf')]},{'unique':!![],'name':_0x0ece('0x10'),'fields':[_0x0ece('0xc'),_0x0ece('0x11')]},{'unique':!![],'name':'name_fax','fields':[_0x0ece('0xc'),_0x0ece('0x12')]},{'unique':!![],'name':'name_openchannel','fields':[_0x0ece('0xc'),'OpenchannelAccountId']},{'unique':!![],'name':'name_whatsapp','fields':[_0x0ece('0xc'),_0x0ece('0x13')]}],'timestamps':!![]});};